{% load i18n %}
{% load endless %}
{% load cropping %}

{% paginate profile_list %}
{% for profile in profile_list %}
    <li>
    <div class="media">
        <a class="pull-left" href="{% url 'userena_profile_detail' profile.user.username %}">
            {% if profile.avatar %}
              <img class="img-circle" src="{% cropped_thumbnail profile avatar_cropping width=64 %}"/>
            {% else %}
              <img class="img-circle" src="{{ profile.get_mugshot_url }}" alt="{% trans "Your mugshot" %}"/>
            {% endif %}
        </a>
        <div class="media-body">
            <h4 class="media-heading"><a href="{% url 'userena_profile_detail' profile.user.username %}">{{ profile.get_full_name_or_username|capfirst }}</a></h4>
            {% if profile.user.email and not hide_email %}{{ profile.user.email }}{% endif %}
        </div>
    </div>
    </li>
{% endfor %}
{% show_more %}